"use client";

import { BasicMarksPlugin } from "@udecode/plate-basic-marks/react";
import { BlockquotePlugin } from "@udecode/plate-block-quote/react";
import {
  CodeBlockPlugin,
  CodeLinePlugin,
  CodeSyntaxPlugin,
} from "@udecode/plate-code-block/react";
import { HeadingPlugin } from "@udecode/plate-heading/react";
import Prism from "prismjs";

export const basicNodesPlugins = [
  HeadingPlugin.configure({
    options: {
      levels: 3,
    },
  }),
  BlockquotePlugin,
  CodeBlockPlugin.configure({ options: { prism: Prism } }),
  BasicMarksPlugin,
  CodeLinePlugin,
  CodeSyntaxPlugin,
] as const;
